<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>产品基本信息</title>
    <th:block th:include="statics/common/page/header"></th:block>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row class="search-panel-space">
            <div class="search-group">
                <i-col span="5">
                	<label class="search-label-20">名称:</label>
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称" class="search-item-width-75"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>    
        <!-- <Row :gutter="16">
            <div class="buttons-group">
                <i-button type="info" @click="add" th:if="${@shiroAuthService.hasPermission('productbase:save')}">
                	<i class="fa fa-plus"></i>&nbsp;新增</i-button>
                <i-button type="warning" @click="update" th:if="${@shiroAuthService.hasPermission('productbase:update')}">
                	<i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                <i-button type="error" @click="del" th:if="${@shiroAuthService.hasPermission('productbase:delete')}">
                	<i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            </div>
        </Row> -->
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="productBase" :rules="ruleValidate" :label-width="80">
            <Form-item label="全名称" prop="allName">
                <i-input v-model="productBase.allName" placeholder="全名称"/>
            </Form-item>
            <Form-item label="顶级分类" prop="topClassifyId">
                <i-input v-model="productBase.topClassifyId" placeholder="顶级分类"/>
            </Form-item>
            <Form-item label="" prop="classifyId">
                <i-input v-model="productBase.classifyId" placeholder=""/>
            </Form-item>
            <Form-item label="自定义编码" prop="code">
                <i-input v-model="productBase.code" placeholder="自定义编码"/>
            </Form-item>
            <Form-item label="单位（计量）" prop="unit">
                <i-input v-model="productBase.unit" placeholder="单位（计量）"/>
            </Form-item>
            <Form-item label="备注" prop="content">
                <i-input v-model="productBase.content" placeholder="备注"/>
            </Form-item>
            <Form-item label="公司id" prop="companyId">
                <i-input v-model="productBase.companyId" placeholder="公司id"/>
            </Form-item>
            <Form-item label="状态 -1：删除 0：冻结   1：有效" prop="status">
                <i-input v-model="productBase.status" placeholder="状态 -1：删除 0：冻结   1：有效"/>
            </Form-item>
            <Form-item label="创建者ID" prop="createUser">
                <i-input v-model="productBase.createUser" placeholder="创建者ID"/>
            </Form-item>
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="productBase.createTime" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="更新者ID" prop="updateUser">
                <i-input v-model="productBase.updateUser" placeholder="更新者ID"/>
            </Form-item>
            <Form-item label="更新时间" prop="updateTime">
                <i-input v-model="productBase.updateTime" placeholder="更新时间"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script th:src="@{../statics/js/product/productbase.js}"></script>
</body>
</html>